<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta charset="UTF-8">
    <meta content="width=device-width, initial-scale=1" name="viewport"/>
    <link href="../../font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
    <link href="../../simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css"/>
    <link href="../../css/common.css" rel="stylesheet">
    <!-- Bootstrap core CSS -->
    <link href="../../css/bootstrap.min.css" rel="stylesheet">
    <link href="../../css/default.css" rel="stylesheet">
</head>
<body style="background-color: #FFFFFF;">
<div class="page-container container-fluid" style="margin-top:0;overflow-y:auto;height:100%;">
    <div class="page-bar">
        <ul class="breadcrumb">
            <li>
                <i class="fa fa-home"></i>
                <a href="../main.html">我的工作台</a>
                <i class="fa fa-angle-right"></i>
            </li>
            <li><a href="#">密码修改</a></li>
        </ul>
    </div>

    <ul class="nav nav-tabs">
        <li class="active">
            <a href="#">
                密码修改 </a>
        </li>
    </ul>
    <div class="row">
        <div class="col-md-12">
            <form class="form-horizontal" role="">
                <div class="form-body">

                    <!--<div class="form-group">
                        <label class="control-label col-md-3 col-sm-3" for="inputWarning">手机号：<span class="required">
								</span></label>
                        <div class="col-md-4 col-sm-4">
                            <input type="text" class="form-control" id="phone" name="phone" placeholder="请输入手机号"/>
                            <span class="help-block">
								         请输入正确的手机号格式</span>
                        </div>
                    </div>-->
                    <div>
                        </br>
                    </div>


                    <div class="form-group">
                        <label for="inputWarning" class="col-md-3 col-sm-3 control-label">旧密码：</label>
                        <div class="col-md-4 col-sm-4">
                            <input id="currentPassword" type="password" class="form-control" name="currentPassword"
                                   placeholder="请输入当前密码"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3" for="inputWarning">新密码：
                            <span class="required">
								</span></label>
                        <div class="col-md-4 col-sm-4">
                            <input id="newPassword" type="password" class="form-control" name="newPassword"
                                   placeholder="请输入新密码"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3" for="inputWarning">确认密码：
                            <span class="required">	</span></label>
                        <div class="col-md-4 col-sm-4">
                            <input id="confirmPassword" type="password" class="form-control" name="confirmPassword"
                                   placeholder="请确认密码"/>
                        </div>
                    </div>
                    <div class="form-actions">
                        <div class="row">
                            <div class="col-md-offset-3 col-md-9 col-sm-offset-3 col-sm-9">
                                <button type="submit" class="btn blue" id="btn-submit">提交</button>
                                <button type="reset" class="btn default "><i class="icon icon-refresh"></i>重置信息</button>
                            </div>
                        </div>
                    </div>
                </div>
        </div>
        </form>
    </div>
</div>
</div>
<script type="text/javascript" src="../../js/jquery-2.0.2.js"></script>
<script type="text/javascript" src="../../js/jquery.cookie-1.4.1.js"></script>
<script>
    $("#btn-submit").click(function () {
        let currentPassword = $("#currentPassword").val();
        let newPassword = $("#newPassword").val();
        let confirmPassword = $("#confirmPassword").val();

        if (currentPassword == null || $.trim(currentPassword) == '') {
            alert("请输入当前密码！");
            return;
        }
        if (newPassword == null || $.trim(newPassword) == '') {
            alert("请输入新密码！");
            return;
        }
        if (confirmPassword != newPassword) {
            alert("请确认两次密码保持一致！");
            return;
        }
        alert("ok");

    });
</script>
</body>
</html>
